package pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;//这里导包一定是util里的，否则无法转换类型
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private Integer id;
    private String username;
    private String password;
    private Date birthday;
//    注入order集合---一对多
//    private List<Order> orderList;
//    注入role
    private List<Role> roleList;

}
